package com.ray.activiti.service;

import java.io.IOException;
import java.util.List;
import java.util.Map;

import com.ray.activiti.common.page.Page;
import com.ray.activiti.table.entity.ExtendActModel;
import com.zjhc.flyhong.common.function.operator.LoginUser;


/**
 * 流程模板扩展表
 * 
 * @Auther ray  qray686898@163.com
 * @Date 2017/12/28
 * @代码参考或来自  https://github.com/huangxianyuan/hxyFrame
 */
public interface ExtendActModelerService {
	
	ExtendActModel queryObject(String id);
	
	List<ExtendActModel> queryList(Map<String, Object> map);
	
	int queryTotal(Map<String, Object> map);
	
	String save(ExtendActModel extendActModel,LoginUser currentUser) throws Exception;

	int update(ExtendActModel extendActModel,LoginUser currentUser);

	int delete(String id);

	int deleteBatch(String[] ids);

	/**
	 * 分页列表
	 * @param riskMarEntity
	 * @param pageNum
	 * @return
	 */
	Page<ExtendActModel> findPage(ExtendActModel riskMarEntity, int pageNum,LoginUser currentUser);

	/**
	 * 部署流程
	 * @param modelId 模型id
	 */
	void deploy(String modelId) throws IOException;
    /**
     * 获取
     * @param string
     * @return
     */
	ExtendActModel queryByDeployId(String deployid);
	/**
     * 获取
     * @param string
     * @return
     */
	ExtendActModel queryByModelId(String modelId);






}
